import request from '@/utils/request'
import qs from 'qs'
export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function getInfo(id) {
  return request({
    url: '/user/'+id,
    method: 'get',
  })
}

/**
 * 修改管理员密码
 * @param id
 * @returns {AxiosPromise}
 */
export function modifyPassword(id,params) {
  return request({
    url: '/user/'+id+"?action=UpdatePassword",
    method: 'put',
    params
  })
}

